/*
 * Copyright (C) 2018 yixun All Rights Reserved.
 * 
 * BusinessLog.java
 */
package com.emm.yixun.common.model;

import com.alibaba.fastjson.annotation.JSONField;
import com.emm.yixun.common.model.enums.CustomerOriginEnum;
import org.apache.commons.lang.StringUtils;

import java.io.Serializable;
import java.util.Date;

/**
 * [文件名称]<br>
 * BusinessLog.java<br>
 * <br>
 * [文件描述]<br>
 *  pojo bean<br>
 * <br>
 * [修改记录]<br>
 * 2018-11-27 10:39:30 创建<br>
 * @version 1.00
 */
public class BusinessReceiveRefund implements Serializable{
    /**
	 * 序列化UID
	 */
	private static final long serialVersionUID = 1L;

	/**
	 *主键
	 */
	private Long id;

	private Long projectId;

	private String combinedName;
	private String combinedNameOld;
	@JSONField (format="yyyy-MM-dd HH:mm:ss")
	private String subscribeDate;
	private String customerName;
	private String businessNype;
	private String calculateArea;
	private String subscribeAmount;
	private String subscribeAmountNew;
	private String customerId;
	private String userName;
	@JSONField (format="yyyy-MM-dd HH:mm:ss")
	private String createTime;
	private String oldId;
	@JSONField (format="yyyy-MM-dd HH:mm:ss")
	private String dateTime;
	private String auditStatus;
	@JSONField (format="yyyy-MM-dd HH:mm:ss")
	private String checkDat;
	private String buildingPrice;

	private String totalAmount;
	private String buildingArea;

	private String conversionPrice;
	private String reason;
	private String reasonType;

	private String contactType;

	private String agentName;

	private String receivablePayment = "0";//应收首付款
	private String backPayment = "0";//未退金额

	private String customerOrigin;//客户来源

	private String customerFamilyName;

	public String getCustomerFamilyName() {
		return customerFamilyName;
	}

	public void setCustomerFamilyName(String customerFamilyName) {
		this.customerFamilyName = customerFamilyName;
	}

	public String getCustomerOrigin() {
		return customerOrigin;
	}

	public void setCustomerOrigin(String customerOrigin) {
		this.customerOrigin = customerOrigin;
	}

	public String getReceivablePayment() {
		return receivablePayment;
	}

	public void setReceivablePayment(String receivablePayment) {
		this.receivablePayment = receivablePayment;
	}

	public String getBackPayment() {
		return backPayment;
	}

	public void setBackPayment(String backPayment) {
		this.backPayment = backPayment;
	}

	public String getAgentName() {
		return agentName;
	}

	public void setAgentName(String agentName) {
		this.agentName = agentName;
	}

	public String getContactType() {
		if("1".equals(contactType)){
			return "网签";
		}else if("2".equals(contactType)){
			return "草签";
		}else if(StringUtils.isEmpty(contactType)){
			return "认购";
		}
		return contactType;
	}

	public void setContactType(String contactType) {
		this.contactType = contactType;
	}

	public String getConversionPrice() {
		return conversionPrice;
	}

	public void setConversionPrice(String conversionPrice) {
		this.conversionPrice = conversionPrice;
	}

	public String getBuildingPrice() {
		return buildingPrice;
	}

	public void setBuildingPrice(String buildingPrice) {
		this.buildingPrice = buildingPrice;
	}

	public String getCombinedNameOld() {
		return combinedNameOld;
	}

	public void setCombinedNameOld(String combinedNameOld) {
		this.combinedNameOld = combinedNameOld;
	}

	public String getSubscribeAmountNew() {
		return subscribeAmountNew;
	}

	public void setSubscribeAmountNew(String subscribeAmountNew) {
		this.subscribeAmountNew = subscribeAmountNew;
	}

	public String getTotalAmount() {
		return totalAmount;
	}

	public void setTotalAmount(String totalAmount) {
		this.totalAmount = totalAmount;
	}

	public String getBuildingArea() {
		return buildingArea;
	}

	public void setBuildingArea(String buildingArea) {
		this.buildingArea = buildingArea;
	}

	public String getReason() {
		if(StringUtils.isEmpty(reason)){
			return "";
		}
		return reason;
	}

	public void setReason(String reason) {
		this.reason = reason;
	}

	public String getReasonType() {
		if(StringUtils.isEmpty(reasonType)){
			return "";
		}
		return reasonType;
	}

	public void setReasonType(String reasonType) {
		this.reasonType = reasonType;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Long getProjectId() {
		return projectId;
	}

	public void setProjectId(Long projectId) {
		this.projectId = projectId;
	}

	public String getCombinedName() {
		return combinedName;
	}

	public void setCombinedName(String combinedName) {
		this.combinedName = combinedName;
	}

	public String getSubscribeDate() {
		return subscribeDate;
	}

	public void setSubscribeDate(String subscribeDate) {
		this.subscribeDate = subscribeDate;
	}

	public String getCustomerName() {
		return customerName;
	}

	public void setCustomerName(String customerName) {
		this.customerName = customerName;
	}

	public String getBusinessNype() {
	    if("1".equals(businessNype)){
	        return "认购";
        }else if("2".equals(businessNype)){
            return "签约";
        }
		return businessNype;
	}

	public void setBusinessNype(String businessNype) {
		this.businessNype = businessNype;
	}

	public String getCalculateArea() {
		return calculateArea;
	}

	public void setCalculateArea(String calculateArea) {
		this.calculateArea = calculateArea;
	}

	public String getSubscribeAmount() {
		return subscribeAmount;
	}

	public void setSubscribeAmount(String subscribeAmount) {
		this.subscribeAmount = subscribeAmount;
	}

	public String getCustomerId() {
		return customerId;
	}

	public void setCustomerId(String customerId) {
		this.customerId = customerId;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getCreateTime() {
		return createTime;
	}

	public void setCreateTime(String createTime) {
		this.createTime = createTime;
	}

	public String getOldId() {
		return oldId;
	}

	public void setOldId(String oldId) {
		this.oldId = oldId;
	}

	public String getDateTime() {
		return dateTime;
	}

	public void setDateTime(String dateTime) {
		this.dateTime = dateTime;
	}

	public String getAuditStatus() {
		if("0".equals(auditStatus)){
			return "待提交";
		}else if("1".equals(auditStatus)){
			return "审核中";
		}else if("2".equals(auditStatus)){
			return "驳回";
		}else if("3".equals(auditStatus)){
			return "审核通过";
		}
		return auditStatus;
	}

	public void setAuditStatus(String auditStatus) {
		this.auditStatus = auditStatus;
	}

	public String getCheckDat() {
		return checkDat;
	}

	public void setCheckDat(String checkDat) {
		this.checkDat = checkDat;
	}

}
